package com.example.dell.fastshopping.user.entity;

import java.util.List;

/**
 * Created by ${YSH} on 2019/5/16.
 * 描述        ${TODO}
 * <p>
 * 更新者       $author$
 * 更新时间     $Data$
 * 描述         ${TODO}
 */
public class IntegralDetail {
    private List<IntegralDetail> list;

    public List<IntegralDetail> getList() {
        return list;
    }

    public void setList(List<IntegralDetail> list) {
        this.list = list;
    }

    //type-种类种类: (1.消耗/2.提现/3.加价/4.返利/5.竞拍轮次积分/6.竞拍得主积分/7.奖励/
    //	8.邀请qq群任务/9.邀请微信群任务/10.邀请微信公众号任务/11.微信分享任务/12.邀请注册任务)
    public int id; // 115,
    public int type; // 9,
    public int userId; // 1093,
    public int cost; // 1,
    //    public int limitno; // null,
    public int sourceId; // 51,
    public long createTime; // 1558342120966,
    public String retains; // {\phone\; //\17767134932\,\sex\; //\null\,\icon
    public int status; // 0

    public void setId(int id) {
        this.id = id;
    }

    public void setType(int type) {
        this.type = type;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public void setCost(int cost) {
        this.cost = cost;
    }

    public void setSourceId(int sourceId) {
        this.sourceId = sourceId;
    }

    public void setCreateTime(long createTime) {
        this.createTime = createTime;
    }

    public void setRetains(String retains) {
        this.retains = retains;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public int getId() {
        return id;
    }

    public int getType() {
        return type;
    }

    public int getUserId() {
        return userId;
    }

    public int getCost() {
        return cost;
    }

    public int getSourceId() {
        return sourceId;
    }

    public long getCreateTime() {
        return createTime;
    }

    public String getRetains() {
        return retains;
    }

    public int getStatus() {
        return status;
    }

    //(1.消耗/2.提现/3.加价/4.返利/5.竞拍轮次积分/6.竞拍得主积分/7.奖励/
    //	8.邀请qq群任务/9.邀请微信群任务/10.邀请微信公众号任务/11.微信分享任务/12.邀请注册任务)
    public String getTypeString() {
        String s = "";
        switch (type) {
            case 1:
                s = "消耗";
                break;
            case 2:
                s = "提现";
                break;
            case 3:
                s = "加价";
                break;
            case 4:
                s = "返利";
                break;
            case 5:
                s = "竞拍轮次积分";
                break;
            case 6:
                s = "竞拍得主积分";
                break;
            case 7:
                s = "奖励";
                break;
            case 8:
                s = "邀请qq群任务";
                break;
            case 9:
                s = "邀请微信群任务";
                break;
            case 10:
                s = "邀请微信公众号任务";
                break;
            case 11:
                s = "微信分享任务";
                break;
            case 12:
                s = "邀请注册任务";
                break;
        }
        return s;
    }

    public String getCostString() {
        String s = "";
        if (type == 1 || type == 2 || type == 3) {
            s = "-" + cost;
        }else {
            s = "+"+cost;
        }
        return s;
    }
}
